{config_load file="index.conf"}<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <card title="Registration">
        {include file="inc/global_menu.tpl"}
        
        {if $registration}
		    Congratulations! You are successfully registed.
		{else}
	        <b>{$error.empty}</b><br />
	        Username:<sup>*</sup><b>{$error.username}</b><br />
	        <input type="text" name="username" value="{$form.username|escape}" /><br />
	        Password:<sup>*</sup><b>{$error.password}</b><br />
	        <input type="password" name="password" value="" /><br />
	        Password again:<sup>*</sup><br />
	        <input type="password" name="password_again" value="" /><br />
	        E-mail:<sup>*</sup><b>{$error.mail}</b><br />
	        <input type="text" name="mail" value="{$form.mail|escape}" /><br />
	        Gender:<sup>*</sup><br />
            <select name="sex">
                <option value="">Your gender</option>
                <option value="male"{if $form.sex == 'male'} selected{/if}>Male</option>
                <option value="female"{if $form.sex == 'female'} selected{/if}>Female</option>
            </select><br />
	        Age:<sup>*</sup><b>{$error.born}</b><br />
	        {html_select_date selected_month="$month" selected_year="$year" selected_day="$day" start_year="-60" end_year="-8"}<br />
	        Phone number:<sup>*</sup><b>{$error.number}</b><br />
	        <input type="text" name="number" value="{$form.number|escape}" /><br />
	        Country/region:<sup>*</sup><br />
	        <input type="text" name="country" value="{$form.country|escape}" /><br />
	        City/other country:<sup>*</sup><br />
	        <input type="text" name="city" value="{$form.city|escape}" /><br />
	        About yourself:<br />
	        <input type="text" name="description" value="{$form.description|escape}" /><br />
	        
	        <anchor>Send
            <go href="/{$sys_path}/" method="post">
                <postfield name="form[username]" value="$(username)"/>
                <postfield name="form[password]" value="$(password)"/>
                <postfield name="form[password_again]" value="$(password_again)"/>
                <postfield name="form[mail]" value="$(mail)"/>
                <postfield name="form[sex]" value="$(sex)"/>
                <postfield name="Date_Month" value="$(Date_Month)"/>
                <postfield name="Date_Day" value="$(Date_Day)"/>
                <postfield name="Date_Year" value="$(Date_Year)"/>
                <postfield name="form[number]" value="$(number)"/>
                <postfield name="form[country]" value="$(country)"/>
                <postfield name="form[city]" value="$(citylogin)"/>
                <postfield name="form[description]" value="$(description)"/>
            </go>
        </anchor><br /><br />
	    {/if}
    </card>
</wml>